package com.jianyun.jyzs.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;
import java.util.List;

/**
 * Created by mlli on 2017/10/25.
 */


public class EngineeringResult extends Response{



    private boolean deleted;
    private String message;
    private boolean result;
    private List<EngineerBean> list;

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public List<EngineerBean> getList() {
        return list;
    }

    public void setList(List<EngineerBean> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "EngineeringResult{" +
                "deleted=" + deleted +
                ", message='" + message + '\'' +
                ", result=" + result +
                ", list=" + list +
                '}';
    }

    @DatabaseTable
    public static class EngineerBean implements Serializable{

        @Override
        public String toString() {
            return "EngineerBean{" +
                    "dt='" + dt + '\'' +
                    ", dtLong=" + dtLong +
                    ", enterpriseCode='" + enterpriseCode + '\'' +
                    ", id='" + id + '\'' +
                    ", place='" + place + '\'' +
                    ", placeId='" + placeId + '\'' +
                    ", projectId='" + projectId + '\'' +
                    ", projectName='" + projectName + '\'' +
                    ", textStr='" + textStr + '\'' +
                    ", type='" + type + '\'' +
                    ", userId='" + userId + '\'' +
                    ", userName='" + userName + '\'' +
                    ", listAgress='" + listAgress + '\'' +
                    ", listAttachment='" + listAttachment + '\'' +
                    ", listDisscuss='" + listDisscuss + '\'' +
                    ", listImages='" + listImages + '\'' +
                    ", isDeleted=" + isDeleted +
                    ", photo='" + photo + '\'' +
                    ", agress=" + agress +
                    ", attachment=" + attachment +
                    ", discuss=" + discuss +
                    ", addTag=" + addTag +
                    ", head=" + head +
                    '}';
        }

        @DatabaseField
        private String dt;
        @DatabaseField
        private long dtLong;
        @DatabaseField
        private String enterpriseCode;
        @DatabaseField(id = true)
        private String id;
        @DatabaseField
        private String place;
        @DatabaseField
        private String placeId;
        @DatabaseField
        private String projectId;
        @DatabaseField
        private String projectName;
        @DatabaseField
        private String textStr;
        @DatabaseField
        private String type;
        @DatabaseField
        private String userId;
        @DatabaseField
        private String userName;
        @DatabaseField
        private String listAgress;
        @DatabaseField
        private String listAttachment;
        @DatabaseField
        private String listDisscuss;
        @DatabaseField
        private String listImages;
        @DatabaseField
        private boolean isDeleted;
        @DatabaseField
        private String photo;


        private List<AgressBean> agress;

        private List<AttachmentBean> attachment;

        private List<DiscussBean> discuss;

        public boolean isDeleted() {
            return isDeleted;
        }

        public void setDeleted(boolean deleted) {
            isDeleted = deleted;
        }


        //不是数据库数据
        private boolean addTag;

        public boolean isAddTag() {
            return addTag;
        }

        public void setAddTag(boolean addTag) {
            this.addTag = addTag;
        }

        public String getListImages() {
            return listImages;
        }

        public void setListImages(String listImages) {
            this.listImages = listImages;
        }


        private boolean head = false;

        public boolean isHead() {
            return head;
        }

        public void setHead(boolean head) {
            this.head = head;
        }

        public String getDt() {
            return dt;
        }

        public void setDt(String dt) {
            this.dt = dt;
        }

        public long getDtLong() {
            return dtLong;
        }

        public void setDtLong(long dtLong) {
            this.dtLong = dtLong;
        }

        public String getEnterpriseCode() {
            return enterpriseCode;
        }

        public void setEnterpriseCode(String enterpriseCode) {
            this.enterpriseCode = enterpriseCode;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getPlace() {
            return place;
        }

        public void setPlace(String place) {
            this.place = place;
        }

        public String getPlaceId() {
            return placeId;
        }

        public void setPlaceId(String placeId) {
            this.placeId = placeId;
        }

        public String getProjectId() {
            return projectId;
        }

        public void setProjectId(String projectId) {
            this.projectId = projectId;
        }

        public String getProjectName() {
            return projectName;
        }

        public void setProjectName(String projectName) {
            this.projectName = projectName;
        }

        public String getTextStr() {
            return textStr;
        }

        public void setTextStr(String textStr) {
            this.textStr = textStr;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getListAgress() {
            return listAgress;
        }

        public void setListAgress(String listAgress) {
            this.listAgress = listAgress;
        }

        public String getListAttachment() {
            return listAttachment;
        }

        public void setListAttachment(String listAttachment) {
            this.listAttachment = listAttachment;
        }

        public String getListDisscuss() {
            return listDisscuss;
        }

        public void setListDisscuss(String listDisscuss) {
            this.listDisscuss = listDisscuss;
        }

        public List<AgressBean> getAgress() {
            return agress;
        }

        public void setAgress(List<AgressBean> agress) {
            this.agress = agress;
        }

        public List<AttachmentBean> getAttachment() {
            return attachment;
        }

        public void setAttachment(List<AttachmentBean> attachment) {
            this.attachment = attachment;
        }

        public List<DiscussBean> getDiscuss() {
            return discuss;
        }

        public void setDiscuss(List<DiscussBean> discuss) {
            this.discuss = discuss;
        }

        public String getPhoto() {
            return photo;
        }

        public void setPhoto(String photo) {
            this.photo = photo;
        }

        public static class AgressBean {
            @Override
            public String toString() {
                return "AgressBean{" +
                        "id='" + id + '\'' +
                        ", userId='" + userId + '\'' +
                        ", userName='" + userName + '\'' +
                        '}';
            }

            /**
             * id : 43
             * userId : d83dd350-433b-4234-aedb-ece8ead36d54
             * userName : 李苗磊
             */

            private String id;
            private String userId;
            private String userName;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getUserId() {
                return userId;
            }

            public void setUserId(String userId) {
                this.userId = userId;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }
        }

        public static class AttachmentBean {
            @Override
            public String toString() {
                return "AttachmentBean{" +
                        "dt='" + dt + '\'' +
                        ", enterpriseCode='" + enterpriseCode + '\'' +
                        ", id='" + id + '\'' +
                        ", phonDuration='" + phonDuration + '\'' +
                        ", phonPath='" + phonPath + '\'' +
                        ", photoPath='" + photoPath + '\'' +
                        ", videoDuration='" + videoDuration + '\'' +
                        ", videoPath='" + videoPath + '\'' +
                        '}';
            }

            private String dt;
            private String enterpriseCode;
            private String id;
            private String phonDuration;
            private String phonPath;
            private String photoPath;
            private String videoDuration;
            private String videoPath;

            public String getDt() {
                return dt;
            }

            public void setDt(String dt) {
                this.dt = dt;
            }

            public String getEnterpriseCode() {
                return enterpriseCode;
            }

            public void setEnterpriseCode(String enterpriseCode) {
                this.enterpriseCode = enterpriseCode;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getPhonDuration() {
                return phonDuration;
            }

            public void setPhonDuration(String phonDuration) {
                this.phonDuration = phonDuration;
            }

            public String getPhonPath() {
                return phonPath;
            }

            public void setPhonPath(String phonPath) {
                this.phonPath = phonPath;
            }

            public String getPhotoPath() {
                return photoPath;
            }

            public void setPhotoPath(String photoPath) {
                this.photoPath = photoPath;
            }

            public String getVideoDuration() {
                return videoDuration;
            }

            public void setVideoDuration(String videoDuration) {
                this.videoDuration = videoDuration;
            }

            public String getVideoPath() {
                return videoPath;
            }

            public void setVideoPath(String videoPath) {
                this.videoPath = videoPath;
            }
        }

        public static class DiscussBean {
            @Override
            public String toString() {
                return "DiscussBean{" +
                        "dt='" + dt + '\'' +
                        ", fromUserId='" + fromUserId + '\'' +
                        ", fromUserName='" + fromUserName + '\'' +
                        ", id='" + id + '\'' +
                        ", textStr='" + textStr + '\'' +
                        ", toUserId='" + toUserId + '\'' +
                        ", toUserName='" + toUserName + '\'' +
                        '}';
            }

            private String dt;
            private String fromUserId;
            private String fromUserName;
            private String id;
            private String textStr;
            private String toUserId;
            private String toUserName;

            public String getDt() {
                return dt;
            }

            public void setDt(String dt) {
                this.dt = dt;
            }

            public String getFromUserId() {
                return fromUserId;
            }

            public void setFromUserId(String fromUserId) {
                this.fromUserId = fromUserId;
            }

            public String getFromUserName() {
                return fromUserName;
            }

            public void setFromUserName(String fromUserName) {
                this.fromUserName = fromUserName;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getTextStr() {
                return textStr;
            }

            public void setTextStr(String textStr) {
                this.textStr = textStr;
            }

            public String getToUserId() {
                return toUserId;
            }

            public void setToUserId(String toUserId) {
                this.toUserId = toUserId;
            }

            public String getToUserName() {
                return toUserName;
            }

            public void setToUserName(String toUserName) {
                this.toUserName = toUserName;
            }
        }
    }
}
